<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    img {
        padding: 50px 0;
        width: 80px;
        height: 80px;
    }

    .box {
        position: absolute;
        bottom: 0;
        left: 50%;
        margin-left: -25%;
        /* background: #f00; */
    }
</style>

<body>
    <div class="box">
        <img src="./image/1.png" alt="">
        <img src="./image/2.png" alt="">
        <img src="./image/3.png" alt="">
        <img src="./image/4.png" alt="">
        <img src="./image/5.png" alt="">
        <img src="./image/6.png" alt="">
        <img src="./image/7.png" alt="">
        <img src="./image/8.png" alt="">
    </div>
</body>

</html>
<script>
    var img = document.querySelectorAll('img')
    var box = document.querySelector('.box')
    for (var i = 0; i < img.length; i++) {
        img[i].onmouseover = function () {
            this.style.width = 120 + 'px'
            this.style.height = 120 + 'px'
        }
        img[i].onmouseout = function () {
            this.style.width = ''
            this.style.height = ''
        }
    }
    box.oncontextmenu = function (e) {
        console.log(1);
        e.preventDefault();

    }
</script>